import React, { lazy } from "react";
const MyIndex = lazy(() => import("../pages/my/myIndex"));
const Login = lazy(() => import("../pages/my/login"));
const Register = lazy(() => import("../pages/my/register"));
const MyAddEdit = lazy(() => import("../pages/my/myAddEdit"));

export const MyRouter = [
  {
    path: "/my",
    element: <MyIndex></MyIndex>,
    meta: {
      title: "我的",
    },
  },
  {
    path: "/login",
    element: <Login></Login>,
    meta: {
      title: "登录",
    },
  },
  {
    path: "/register",
    element: <Register></Register>,
    meta: {
      title: "注册",
    },
  },
  {
    path: "/my/file/add/edit",
    element: <MyAddEdit></MyAddEdit>,
    meta: {
      title: "添加-编辑",
    },
  },
];
